<?php


namespace app\model\goods;


use think\Model;
use think\model\concern\SoftDelete;

class GoodsModel extends Model
{
    use SoftDelete;
    protected $defaultSoftDelete = 0;

    protected $name = 'goods';
    protected $autoWriteTimestamp = true;

    protected $hidden = ['update_time', 'delete_time'];

    public function setEndTimeAttr($value)
    {
        return strtotime($value);
    }
}